import request from '@/api/request'

// 精确投流 - 搜索帖子
export function searchPosts(params) {
  return request({
    url: '/admin/management/post/search',
    method: 'get',
    params
  })
}

// 精确投流 - 批量更新热度
export function batchUpdateHot(data) {
  return request({
    url: '/admin/management/post/hot/batch',
    method: 'put',
    data
  })
}

// 精确投流 - 重置热度
export function resetPostsHot(data) {
  return request({
    url: '/admin/management/post/hot/reset',
    method: 'put',
    data
  })
}